<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/html1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<f:view>
		<head>
			<title><h:outputText value="#{msgs['gci.title']}" /></title>
			<a4j:loadStyle src="/includes/css/sccss.css"></a4j:loadStyle>
			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		</head>
		<body>
			<h:form prependId="false">
				<h2>
					<h:graphicImage value="#{pageContext.request.contextPath}/images/logoTDA.gif" />&nbsp;<h:outputText value="#{msgs['gci.title']}" />
				</h2>
				<br>
				<br>
				<rich:messages styleClass="error" globalOnly="true"/>
					
				<fieldset>
					<legend> <h:outputText value="#{msgs['login.dados']}" /></legend>						
					<p class="formitem_line">
						<h:outputLabel value="#{msgs['login.login']}" />
						<h:inputText size="25" id="login" value="#{loginController.funcionario.loginFunc}" binding="#{loginController.loginInput}" />
						<h:message styleClass="error" for="login" />
					</p>
					
					<p class="formitem_line">
						<h:outputLabel value="#{msgs['login.senha']}" />
						<h:inputSecret size="25" id="senha" value="#{loginController.funcionario.senha}" binding="#{loginController.senhaInput}"/>
						<h:message styleClass="error" for="senha" />
					</p>
					
			
					<p class="final">
						<h:commandButton action="#{loginController.efetuarLogin}" value="#{msgs['login.entrar']}" />
					</p>	
				</fieldset>
							
			</h:form>					
		</body>
	</f:view>
</html>